import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';

import { BrowserRouter as Router, Route,Switch,HashRouter } from "react-router-dom";
import registerServiceWorker from './registerServiceWorker';
import Apply from './page/Apply';
import Home from './page/Home';
import CommonList from './page/CommonList';
import EvaluateItemD from './page/EvaluateItemD';
import CommonDetails from './page/CommonDetails';

import {store} from './redux'
import {Provider} from  'react-redux'
 import 'antd-mobile/dist/antd-mobile.css'; 
import './index.min.js'
class App extends React.Component{
    render(){
        return(
            <Provider store={store}>
                    <HashRouter>
                    <Switch>
                        <Route path="/apply" component={Apply}/>
                        <Route path="/CommonList/:id" component={CommonList}/>
                        <Route path="/EvaluateItemD/:typeId" component={EvaluateItemD}/>
                        <Route path="/CommonDetails/:id" component={CommonDetails}/>
                        
                        <Route path="/" component={Home}/>
                        </Switch>
                    </HashRouter>
            </Provider>
        )
    }
}



ReactDOM.render(<App/>, document.getElementById('root'));
 registerServiceWorker();
